{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box no-header clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
		<div class="pull-right" style="display: none">
			<a class="btn btn-primary" href="{:url('add')}"><i class="fa fa-plus-circle fa-lg"></i> 新 增</a>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<!-- 表格列表 -->
		<div class="table-responsive clearfix">
			<div class="tabs-wrapper">
				<ul class="nav nav-tabs">

				</ul>
				<div class="tab-content">
					<div class="tab-pane fade in active" id="tab-home">
						<table class="table table-hover">
							<thead>
								<tr>
									<th width="30"><input class="checkbox check-all" type="checkbox"></th>
									<th width="60">ID</th>
									<th>公司名</th>
									<th width="120">区域</th>
									<th width="120">行业</th>
									<th width="120">人数</th>
									<th width="120">部门数</th>
									<th width="120">状态</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
							{volist name="list" id="org"}
							<tr>

							<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$org.id}"></td>
							<td>{$org['id']}</td>
							<td>{$org['name']}</td>
							<td>{$org['province']}-{$org['city']}</td>
							<td>{$org['job']}</td>
							<td>{$org['user_count']}</td>
							<td>{$org['dept_count']}</td>
							<td>{$org['status']}</td>
							<td><a title="编辑" href="{:url('edit?id='.$org['id'])}">编辑</a>
							</td>
							</tr>
							{/volist}
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
		<!-- /表格列表 -->
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__PUBLIC__/js/bootstrap-editable.min.js"></script>
<script type="text/javascript">
$(function(){
	$.fn.editable.defaults.mode = 'popup';
	$.fn.editableform.buttons = '<button type="submit" class="btn btn-success editable-submit btn-mini"><i class="fa fa-check-square-o fa-white"></i></button>' +
	'<button type="button" class="btn editable-cancel btn-mini"><i class="fa fa-times"></i></button>';
	$('.editable').editable();
})
</script>
{/block}